package main.java.com.lee.juc.syncollection;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * @Description TODO
 * @Author winston
 * @DateTime 2022/2/16
 */
public class CopyOnWriteArrayListDemo {
    public static void main(String[] args) {
        CopyOnWriteArrayList<String> list = new CopyOnWriteArrayList<>();
        list.add("dog");
        list.remove("dog");
        list.set(0, "pig");
        list.get(0);
    }
}
